#pragma once

#include <iomanip>
#include <sstream>
#include <string>

template < typename T >
static std::string ToStr ( const T & value )
{
	std::stringstream stream;
	stream << value;
	return stream.str ();
}

template <>
static std::string ToStr < int > ( const int & value )
{
	std::stringstream stream;
	stream.setf ( std::ios_base::uppercase );
	stream << std::setw ( 8 ) << std::setfill ( '0' ) << std::setbase ( 16 ) << value;
	return stream.str ();
}

